package org.exercise6.facade;

/**
 * @author Stranger
 * @version 1.0
 * @description: TODO
 * @date 2022/11/16 21:23
 */
public class DataProcessGraph {

    private DataGraph dataGraph;

    private DecodeData decodeData;

    private LoadData loadData;

    public DataProcessGraph() {
        decodeData = new DecodeData();
        dataGraph = new DataGraph();
        loadData = new LoadData();
    }

    public Data loadDta() {
        return loadData.loadData();
    }

    public String decode(Data data) {
        return data.toString();
    }

    public Image graph(String data) {
        return dataGraph.parseGraph(data);
    }

}
